﻿<%@ Control Language="C#" AutoEventWireup="true" Inherits="Web.Controls.EntityEdit" Codebehind="EntityEdit.ascx.cs" %>

<div class="formBox">
<h4><%=Caption %></h4>
<asp:Repeater ID="rptControl" runat="server" 
    onitemdatabound="rptControl_ItemDataBound" 
    onitemcommand="rptControl_ItemCommand">
<HeaderTemplate>
    <table cellpadding="0" cellspacing="1" border="0" width="100%">
</HeaderTemplate>
<ItemTemplate>
    <tr>
        <td width="25%" align="right" class="lbl"><%# DataBinder.Eval(Container.DataItem, "Name") %></td>
        <td width="75%">
            <asp:HiddenField ID="hidPropname" runat="server" Value=<%# DataBinder.Eval(Container.DataItem, "Name") %> />
            <asp:TextBox ID="txtValue" runat="server" Visible="false" class="txtbox" />
            <asp:DropDownList ID="drpList" runat="server" Visible="false" Width="98%" />        
            <asp:CheckBox ID="chkValue" runat="server" Visible="false" />
        </td>
    </tr>
</ItemTemplate>
<FooterTemplate>
    <tr>
        <td colspan="2" align="right">
            <asp:Literal ID="litErrors" runat="server" />
            <asp:Button ID="btnUpdate" runat="server" Text="Update" CommandName="Update" class="greenbutton"/>
        </td>
    </tr>
    </table>
</FooterTemplate>
</asp:Repeater>
</div>